﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Windows.Input;

using System.Windows.Data;

using System.Drawing;

namespace CBackImageWpf
{
   public   class PointConvertor:IValueConverter
    {


        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            Point pt = (Point)value;

            return pt.X;
            
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            int x =(int)value;
            return x;

        }
    }
}
